package com.example.demo;

import com.example.demo.model.ListController;
import com.example.demo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.PostConstruct;

@Controller
@RequestMapping("/test")
public class UserController {
    @Autowired
    private ListController listController;
    @PostConstruct
    public void doPostConstruct(){
        //初始化方法
        System.out.println(listController.toString());
    }
}
